import wepy from 'wepy'

const host = 'http://api.chat.hypergo.net'

const get = (url) => wepy.request(host + url)

const post = (url, data) => wepy.request({
  url: host + url,
  data: data,
  method: 'POST'
})

export default {
  getData() {
    return get('/get')
  },

  postData() {
    return post('/post')
  }
}
